﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="filterBar.ascx.cs" Inherits="Irendil.controls.filterBar" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>



<asp:Panel ID="filterBarPanel" runat="server" Width="550px">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:Label ID="fromDateLabel" runat="server" CssClass="EtichettaLight" 
                    Text="Da:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="fromDateTextBox" runat="server" CssClass="inputNormal"></asp:TextBox>
                <asp:CalendarExtender ID="fromDateTextBox_CalendarExtender" runat="server" 
                    TargetControlID="fromDateTextBox" Format="dd/MM/yyyy">
                </asp:CalendarExtender>
            </td>
            <td>
                <asp:Label ID="toDateLabel" runat="server" CssClass="EtichettaLight" Text="A:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="toDateTextBox" runat="server" CssClass="inputNormal"></asp:TextBox>
                <asp:CalendarExtender ID="toDateTextBox_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="toDateTextBox" Format="dd/MM/yyyy">
                </asp:CalendarExtender>
            </td>
            <td>
                <asp:Label ID="hostLabel" runat="server" CssClass="EtichettaLight" Text="Host:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="hostDropDownList" runat="server" CssClass="ddmBox">
                </asp:DropDownList>
            </td>
            <td>
            </td>
            <td>
                <asp:Button ID="searchButton" runat="server" Text="Cerca" CssClass="Button" />
            </td>
        </tr>
        <tr>
            <td>
                </td>
            <td>
                <asp:CompareValidator ID="fromDateCompareValidator" runat="server" 
                    ControlToValidate="fromDateTextBox" CssClass="validatorNormal" 
                    Display="Dynamic" ErrorMessage="Data non valida " Operator="DataTypeCheck" 
                    Type="Date"></asp:CompareValidator>
                <asp:CompareValidator ID="dateCompareValidator" runat="server" 
                    ControlToCompare="toDateTextBox" ControlToValidate="fromDateTextBox" 
                    CssClass="validatorNormal" Display="Dynamic" ErrorMessage="Date non coerenti" 
                    Operator="LessThanEqual" Type="Date"></asp:CompareValidator>
            </td>
            <td>
                </td>
            <td>
                <asp:CompareValidator ID="toDateCompareValidator" runat="server" 
                    ControlToValidate="toDateTextBox" CssClass="validatorNormal" Display="Dynamic" 
                    ErrorMessage="Data non valida" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Panel>

